home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 3: The Continuation
/
17-Bit_The_Continuation_Disc.iso
/
amigan
/
amigan 10
/
nuke
< prev
next >
Wrap
Text File
|
1994-01-27
|
15KB
|
367 lines
10 REM-Nuclear attack simulator for the Great Pacific Northwest
20 REM-by M.F.SMITH 06/16/84
30 REM-Original program by J.R. DUKAT
40 REM-Information presented is as good as my sources allow
50 REM-any corrections or improvements are welcomed........
60 REM
70 REM-start it up
80 SCREEN 1,640,200,4,2
WINDOW 1,"NUKEWAR ",,6,1
CLS
90 LOCATE 10,15:PRINT "DO YOU LOVE THE GREAT PACIFIC NORTHWEST?";
100 FOR T=1 TO 3000:NEXT T:CLS
110 GOTO 160
120 GOSUB 2970
130 GOSUB 2940
150 CLS
160 COLOR 0,15
180 LINE (157,0)-(500,22),7,B
190 LINE (157,27)-(500,194),7,B
200 LOCATE 2,21:PRINT " MAP.....PACIFIC NW";
210 SCALE=.93
220 XT=-140:YT=120
230 IBMX=150+(XT*SCALE):IBMY=99-((YT)*SCALE)
240 FLG=0
250 READ X,Y
260 IF X=999 AND Y=999 THEN 240
270 IF X=888 AND Y=888 THEN 370
280 X=X+TX:Y=Y+TY
290 X0=TX:Y0=TY
300 X=IBMX+X:Y=IBMY-(Y)
310 PSET (X,Y),2
320 IF FLG=0 THEN 340
330 LINE (X,Y)-(LASTX,LASTY),2
340 LASTX=X:LASTY=Y
350 FLG=1
360 GOTO 250
370 READ X,Y
380 IF X=999 AND Y=999 THEN 410
390 PAINT (X,Y),3,2
400 GOTO 370
410 GOSUB 3020 ;DRAW COMPASS ROSE
420 IF NXTBOMB=1 THEN 2330
430 LOCATE 5,21:PRINT " This map covers ";
440 LOCATE 6,21:PRINT " an area of appx. ";
450 LOCATE 7,21:PRINT " 1700 sq/mi. The ";
460 LOCATE 8,21:PRINT " long dimension is";
470 LOCATE 9,21:PRINT " about 50 miles - ";
480 LOCATE 10,21:PRINT " short dimension ";
490 LOCATE 11,21:PRINT " about 34 miles. ";
500 LOCATE 12,21:PRINT " Downtown SEATTLE ";
510 LOCATE 13,21:PRINT " is near the ";
520 LOCATE 14,21:PRINT " center of the map";
530 LOCATE 15,21:PRINT " TACOMA is to the ";
540 LOCATE 16,21:PRINT " south and EVERETT";
550 LOCATE 17,21:PRINT " is to the north. ";
560 LOCATE 18,21:PRINT " BREMERTON is to ";
570 LOCATE 19,21:PRINT " the West and ";
580 LOCATE 20,21:PRINT " BELLEVUE to the ";
585 LOCATE 21,21:PRINT " east. ";
590 FOR T=1 TO 9000:NEXT T
600 GOSUB 2970 ;CLEAR BIG BOX
610 LOCATE 5,21:PRINT " The Puget Sound ";
620 LOCATE 6,21:PRINT " and Lake Washing-";
630 LOCATE 7,21:PRINT " ton make SEATTLE ";
640 LOCATE 8,21:PRINT " an isthmus.MERCER";
650 LOCATE 9,21:PRINT " ISLAND is visible";
660 LOCATE 10,21:PRINT " as is VASHON IS- ";
661 LOCATE 11,21:PRINT " LAND. Also the ";
662 LOCATE 12,21:PRINT " southern tip of ";
663 LOCATE 13,21:PRINT " WHIDBEY ISLAND is";
664 LOCATE 14,21:PRINT " visible to the ";
665 LOCATE 15,21:PRINT " north near the ";
666 LOCATE 16,21:PRINT " city of EVERETT. ";
710 FOR T=1 TO 8000:NEXT T
720 GOSUB 2970
730 LOCATE 5,21:PRINT " This program is ";
740 LOCATE 6,21:PRINT " to demonstrate ";
750 LOCATE 7,21:PRINT " effects from var-";
760 LOCATE 8,21:PRINT " ious nuclear war-";
770 LOCATE 9,21:PRINT " heads which might";
780 LOCATE 10,21:PRINT " be used in attack";
790 LOCATE 11,21:PRINT " ing The Northwest";
800 LOCATE 12,21:PRINT " This attack will ";
810 LOCATE 13,21:PRINT " consist of just ";
820 LOCATE 14,21:PRINT " nine 1 MT. bombs.";
830 LOCATE 15,21:PRINT " They will explode";
840 LOCATE 16,21:PRINT " at an altitude of";
850 LOCATE 17,21:PRINT " 8000 ft. This sim";
860 LOCATE 18,21:PRINT " ulation would be ";
870 LOCATE 19,21:PRINT " considered on the";
880 LOCATE 20,21:PRINT " conservative side";
920 FOR T=1 TO 11000:NEXT T
930 GOSUB 2970
940 TMR=2000
950 GOSUB 2940
960 LOCATE 2,21:PRINT " Select Targets ";
970 LINE (157,27)-(319,194),1,B
980 LOCATE 5,21:PRINT " Seattle ";
990 SOUND 500,1:PSET (97,91),1
1000 FOR T=1 TO TMR:NEXT T
1010 LOCATE 6,21:PRINT " Everett Area ";
1020 SOUND 500,1:PSET (110,5),1
1030 FOR T=1 TO TMR:NEXT T
1040 LOCATE 7,21:PRINT " SEA-TAC INTL.";
1050 SOUND 500,1:PSET (97,130),1
1060 FOR T=1 TO TMR:NEXT T
1070 LOCATE 8,21:PRINT " Tacoma ";
1080 SOUND 500,1:PSET (77,190),1
1090 FOR T=1 TO TMR:NEXT T
1100 LOCATE 9,21:PRINT " Bremerton ";
1110 SOUND 500,1:PSET (35,101),1
1120 FOR T=1 TO TMR:NEXT T
1130 LOCATE 10,21:PRINT " Bellevue ";
1140 SOUND 500,1:PSET (120,91),1
1150 FOR T=1 TO TMR:NEXT T
1160 LOCATE 11,21:PRINT " Renton ";
1170 SOUND 500,1:PSET (117,125),1
1180 FOR T=1 TO TMR:NEXT T
1190 LOCATE 12,21:PRINT " Edmonds ";
1200 SOUND 500,1:PSET (92,35),1
1210 FOR T=1 TO TMR:NEXT T
1220 LOCATE 13,21:PRINT " Poulsbo ";
1230 SOUND 500,1:PSET (40,60),1
1240 FOR T=1 TO TMR:NEXT T
1250 FOR I=5 TO 13
1260 LOCATE I,22:PRINT CHR$(26);
1270 SOUND 1000,1:FOR T=1 TO 50:NEXT T
1280 NEXT I
1290 LOCATE 2,21:PRINT " Targets Confirmed ";
1300 FOR T=1 TO 4000:NEXT T
1310 GOSUB 2970
1320 FOR S=1 TO 50:SOUND 9000,.5:SOUND 8000,.5:NEXT S
1330 LOCATE 2,21:PRINT " Warhead Size ";
1340 LOCATE 5,21:PRINT " Each warhead is ";
1350 LOCATE 6,21:PRINT " one megaton - the ";
1360 LOCATE 7,21:PRINT " equivalent of one ";
1370 LOCATE 8,21:PRINT " million tons of ";
1380 LOCATE 9,21:PRINT " TNT. ";
1390 LOCATE 11,21:PRINT " Warheads are set ";
1400 LOCATE 12,21:PRINT " to airburst at an ";
1410 LOCATE 13,21:PRINT " altitude of 8000 ";
1420 LOCATE 14,21:PRINT " feet. ";
1430 FOR T=1 TO 5000:NEXT T
1440 GOSUB 2970:GOSUB 2940
1450 SOUND 8000,.5
1460 LOCATE 2,21:PRINT " Targets Marked ";
1470 PSET (97,91),Z
1480 PSET (110,5),Z
1490 PSET (97,130),Z
1500 PSET (77,190),Z
1510 PSET (35,101),Z
1520 PSET (120,91),Z
1530 PSET (117,125),Z
1540 PSET (92,35),Z
1550 PSET (40,60),Z
1560 C=C+1:IF C=150 THEN 1590
1570 IF Z=1 THEN Z=0 ELSE Z=1
1580 GOTO 1470
1590 LOCATE 2,21:PRINT " Time to detonate ";
1600 FOR CD=10 TO 3 STEP -1
1610 LOCATE 6,23:PRINT USING "####";CD;
1620 LOCATE 6,28:PRINT "seconds";
1630 FOR T=1 TO 1000:NEXT T
1640 NEXT CD
1650 GOSUB 2970
1660 FOR S=1 TO 50:SOUND 4000,.5:SOUND 4500,.5:NEXT S
1670 LOCATE 2,21:PRINT " -- DETONATION -- ";
1680 S=1:I=5:R=0:GOSUB 2690
1690 LOCATE 5,21:PRINT " ZONE 1 ";
1700 LOCATE 7,21:PRINT " Diameter 3 mi. ";
1710 LOCATE 10,21:PRINT " Overpress. 25 psi ";
1720 LOCATE 11,21:PRINT " Wind Vel. 320 mph ";
1730 LOCATE 13,21:PRINT " All structures ";
1740 LOCATE 14,21:PRINT " above ground are ";
1750 LOCATE 15,21:PRINT " destroyed. ";
1760 LOCATE 17,21:PRINT " 98 % fatalities ";
1770 LOCATE 19,21:PRINT " STBY FOR ZONE 2 ";
1780 FOR T=1 TO 5500:NEXT T
1790 GOSUB 2970
1800 S=6:I=10:R=1:GOSUB 2690
1810 LOCATE 5,21:PRINT " ZONE 2 ";
1820 LOCATE 7,21:PRINT " Diameter 6 miles ";
1830 LOCATE 10,21:PRINT " Overpress. 9 psi ";
1840 LOCATE 11,21:PRINT " Wind Vel. 260 mph ";
1850 LOCATE 13,21:PRINT " Factories/office ";
1860 LOCATE 14,21:PRINT " buildings collapse";
1870 LOCATE 15,21:PRINT " Severe damage to ";
1880 LOCATE 16,21:PRINT " highway bridges. ";
1890 LOCATE 17,21:PRINT " 50% dead 40% inj. ";
1900 LOCATE 19,21:PRINT " STBY FOR ZONE 3 ";
1910 FOR T=1 TO 5500:NEXT T
1920 GOSUB 2970
1930 I=19:R=1:GOSUB 2590 ;DRAW CIRCLES
1940 LOCATE 5,21:PRINT " ZONE 3 ";
1950 LOCATE 7,21:PRINT " Diameter 10 mi. ";
1960 LOCATE 10,21:PRINT " Overpress. 3 psi ";
1970 LOCATE 11,21:PRINT " Wind Vel. 98 mph ";
1980 LOCATE 13,21:PRINT " Wood frame resid-";
1990 LOCATE 14,21:PRINT " ences severely ";
2000 LOCATE 15,21:PRINT " damaged. People ";
2010 LOCATE 16,21:PRINT " are blown around. ";
2020 LOCATE 17,21:PRINT " 2nd degree burns. ";
2030 LOCATE 18,21:PRINT " 10% dead 45% inj. ";
2040 LOCATE 20,21:PRINT " STBY FOR MORE.. ";
2050 FOR T=1 TO 5500:NEXT T
2060 GOSUB 2970
2070 LOCATE 5,21:PRINT " LONG RANGE EFFECT ";
2080 LOCATE 7,21:PRINT " Light door/plaster";
2090 LOCATE 8,21:PRINT " damage to 14.5 mi.";
2100 LOCATE 9,21:PRINT " Windows broken out";
2110 LOCATE 10,21:PRINT " to 30 miles. ";
2120 LOCATE 12,21:PRINT " Flashblindness to ";
2130 LOCATE 13,21:PRINT " 13 miles daytime. ";
2140 LOCATE 14,21:PRINT " and to 50 miles at";
2150 LOCATE 15,21:PRINT " night clear sky. ";
2160 FOR T=1 TO 5500:NEXT T
2170 GOSUB 2970:GOSUB 2940
2180 LOCATE 2,21:PRINT " WANNA SEE WORSE ? ";
2190 LOCATE 5,21:PRINT " If you wait just a";
2200 LOCATE 6,21:PRINT " second I'll redraw";
2210 LOCATE 7,21:PRINT " the map and drop ";
2220 LOCATE 8,21:PRINT " just one 20 MT.war";
2230 LOCATE 9,21:PRINT " head centered on ";
2240 LOCATE 10,21:PRINT " Downtown SEATTLE. ";
2250 LOCATE 11,21:PRINT " I will mark zones ";
2260 LOCATE 12,21:PRINT " as before... ";
2270 LOCATE 13,21:PRINT " Burst altitude for";
2280 LOCATE 14,21:PRINT " this device will ";
2290 LOCATE 15,21:PRINT " be 17500 feet... ";
2300 NXTBOMB=1
2310 FOR T=1 TO 9000:NEXT T
2320 RESTORE:GOTO 120
2330 SOUND 2000,1
2340 LOCATE 2,21:PRINT " Target SEATTLE ";
2350 LOCATE 5,21:PRINT " 20 MT. WARHEAD ";
2360 PSET (97,91),0
2370 FOR T=1 TO 3000:NEXT T
2380 SOUND 5000,1:LOCATE 2,21:PRINT " -- DETONATION -- ";
2390 S=1:I=16:R=1:GOSUB 2830:S=17:I=23:R=1:GOSUB 2830
2400 CIRCLE (97,91),40,1
2410 FOR T=1 TO 3000:NEXT T
2420 GOSUB 2970
2430 LOCATE 6,21:PRINT " -FOR COMPARISON- ";
2440 LOCATE 8,21:PRINT " I'll drop a 12.5 ";
2450 LOCATE 9,21:PRINT " kiloton bomb on ";
2460 LOCATE 10,21:PRINT " Vashon Island. ";
2470 LOCATE 11,21:PRINT " (Hiroshima size)..";
2480 S=1:I=2:R=0:GOSUB 2900:S=3:I=4:R=3:GOSUB 2900
2490 FOR T=1 TO 10000:NEXT T:CLS
2500 LOCATE 10,1
2510 PRINT " Projection for U.S. & SOVIET warhead numbers for 1985"
2520 LOCATE 11,1
2530 PRINT " is a grand total of roughly 40000 of various sizes..."
2540 LOCATE 12,1
2550 PRINT " This total does not include other nuclear powers ..."
2560 LOCATE 17,1
2570 PRINT " BYE/BYE & GOOD LUCK"
2580 FOR T=1 TO 9000:NEXT T:LOCATE 1,1:END
2590 CIRCLE (97,91),I,R
2600 CIRCLE (110,5),I,R
2610 CIRCLE (97,130),I,R
2620 CIRCLE (77,190),I,R
2630 CIRCLE (35,101),I,R
2640 CIRCLE (120,91),I,R
2650 CIRCLE (117,125),I,R
2660 CIRCLE (92,35),I,R
2670 CIRCLE (40,60),I,R
2680 RETURN
2690 FOR GZ=S TO I
2700 CIRCLE (97,91),GZ,R
2710 CIRCLE (110,5),GZ,R
2720 CIRCLE (97,130),GZ,R
2730 CIRCLE (77,190),GZ,R
2740 CIRCLE (35,101),GZ,R
2750 CIRCLE (120,91),GZ,R
2760 CIRCLE (117,125),GZ,R
2770 CIRCLE (92,35),GZ,R
2780 CIRCLE (40,60),GZ,R
2790 FOR T=1 TO 300:NEXT T
2800 NEXT GZ
2810 REM-SINGLE WARHEAD ON SEATTLE
2820 RETURN
2830 FOR GZ=S TO I
2840 CIRCLE (97,91),GZ,R
2850 FOR T=1 TO 300:NEXT T
2860 NEXT GZ
2870 FOR T=1 TO 300:NEXT T
2880 RETURN
2890 REM-sub to drop 12.5 kiloton bomb on Vashon Island
2900 FOR GZ=S TO I
2910 CIRCLE (70,131),GZ,R
2920 FOR T=1 TO 300:NEXT T
2930 NEXT GZ
2940 REM- to clear small box
2950 LOCATE 2,21:PRINT " ";
2960 RETURN
2970 REM-sub to clear big box
2980 FOR I=5 TO 23
2990 LOCATE I,22:PRINT " ";
3000 NEXT I
3010 RETURN
3020 REM-sub to draw compass rose
3030 FOR I=20 TO 50 STEP 2:PSET (125,I),0:NEXT I
3040 FOR I=115 TO 135 STEP 4:PSET (I,35),0:NEXT I
3050 PSET (125,20),0:LINE -(122,23),0:PSET (125,20),0:LINE -(127,23),0
3060 RETURN
3100 DATA 37.5,0,37,-7.5,37,-8,36,-9,35.5,-10,35,-11,34.5,-12.5
3110 DATA 35,-13.5,35.5,-14.5,36,-15,37,-14.5,37.5,-14,38,-13.5,38.5,-13
3120 DATA 39,-12.5,39.5,-12,40.5,-11,41.5,-10,43,-10,45.5,-8.5,46.5,-8
3130 DATA 48,0,50,-7,51,-9,52,-9,53.5,-10.5,55,-12.5,56,-14
3140 DATA 57,-15.5,55.5,-16,55.5,-18.5,58,-21,59,-22,58.5,-22.5
3150 DATA 60.5,-23,62,-22.5,64,-20,66.5,-19.5,67,-20,65.5,-23.5
3160 DATA 66.5,-25,68.5,-25,69,-20,72.5,-16.5,74,-10.5,73.5,-6.5
3170 DATA 72.5,-2,71,0,37.5,0,999,999
3200 DATA 99,0,99,-.5,95,-4,93,-6.5,86,-10.5,82,-12,80.5,-14,80.5,-19,81,-21
3210 DATA 79,-26.5,77,-31.5,79,-34.5,77,-36,76,-40.5,74,-42,71,-45,66.5,-51
3220 DATA 65.5,-53,66.5,-56,65,-58.5,66,-61.5,68.5,-65.5,68,-68.5,70,-72
3230 DATA 68.5,-78.5,65,-81,62.5,-83,62.5,-89,57,-92.5,60.5,-97,66.5,-101.5
3240 DATA 70,-102,77,-109,77,-117,75,-111.5,73,-111.5,73,-117,72.5,-117
3250 DATA 72,-111.5,71,-112,70,-113.5,67.5,-110,60,-117,65.5,-126.5
3260 DATA 64.5,-128,66,-130,65,-133,72.5,-142,70,-146.5,70,-149,68,-151.5
3270 DATA 73,-154,75,-159,78.5,-164.5,79,-168,78.5,-171,79,-174,79,-180.5
3280 DATA 69,-185,69,-186,58.5,-188.5,57,-193,55,-193,55,-195,60.5,-196.5
3290 DATA 64,-199.5,57,-207,135,-207,135,0,99,0,999,999
3300 DATA 62.5,-89,76,-97,77,-101.5,79,-100,79,-96.5,80,-96,82,-96.5,87.5,-96.5
3310 DATA 88.5,-98,87.5,-112.5,92.5,-125,91,-131,99,-136.5,101.5,-136.5
3320 DATA 100,-131.5,103,-127,103,-121,105.5,-116,102.5,-116,100,-107,95.5,-105
3330 DATA 95,-96,101.5,-94.5,101.5,-88,99,-84,100.5,-81,98,-82.5,95,-81,91,-70
3340 DATA 92,-66.5,91,-65.5,88.5,-66,86.5,-72,89,-82.5,94.5,-86.5,88.5,-94.5
3350 DATA 88.5,-94.5,88.5,-98,95,-98,999,999
3400 DATA 62.5,-88,76,-96,77,-96.5,78,-95,82,-95.5,85,-93,88.5,-98,999,999
3500 DATA 87.5,-111.5,92,-111.5,94.5,-110,102.5,-115,101,-126.5,98.5,-130.5
3510 DATA 94.5,-127.5,97,-118,93,-114.5,92,-111.5,999,999
3600 DATA 57,-207,33,-190,39,-197.5,35,-207,57,-207,999,999
3700 DATA 0,-183.5,19.5,-171,19.5,-175,11,-182.5,13.5,-187.5,9,-189
3710 DATA 7,-193,6,-200.5,13.5,-207,32,-207,35,-199,30,-187.5,37,-173.5
3720 DATA 34,-167,45,-134,43,-130.5,35,-130,35,-119.5,37,-118.5,34,-116
3730 DATA 34,-111,22,-126,6.5,-129.5,6.5,-128.5,19.5,-118,18.5,-114.5
3740 DATA 13.5,-111.5,12,-114,11.5,-113.5,11.5,-108.5,10.5,-107,9,-114
3750 DATA 8,-114,6.5,-106,3,-108,3,-102.5,6.5,-95.5,8,-95.5,10,-98
3760 DATA 8.5,-102.5,12,-104,13,-108,16,-112.5,19,-113.5,21,-118,22,-118
3770 DATA 26,-110,24.5,-107,26,-98,23,-94.5,20.5,-80,13,-75.5,13.5,-68
3780 DATA 14.5,-67.5,23,-81,23,-82,26,-84,34,-71,32,-67.5,48,-67.5
3790 DATA 48,-62,46,-58,41.5,-54,45.5,-52,46.5,-49,41.5,-45,38,-22.5,34,-19.5
3800 DATA 26,-19.5,23,-14.5,20.5,-14.5,20,-18.5,26,-24,30,-47,27.5,-48.5
3810 DATA 27,-38,20.5,-38,8,-53,6.5,-60.5,3,-61,0,-67.5,0,-183.5,999,999
3900 DATA 31,-78,33,-75.5,34.5,-76,34.5,-78.5,38,-80,40.5,-79,43,-81,43,-90
3910 DATA 44.5,-92,40.5,-94.5,46,-99,46,-102,39,-102.5,45,-104,45,-109
3920 DATA 40.5,-110,47.5,-113,40,-116,33.5,-108,31,-111,29,-108.5,27.5,-95.5
3930 DATA 25.5,-91.5,29,-87.5,28,-91.5,32,-87.5,31,-78,999,999
4000 DATA 51.5,-134,55.5,-136.5,53.5,-138,53.5,-141,59,-146,57,-150,59.5,-159
4010 DATA 58.5,-162,59,-164.5,70,-169.5,59.5,-174.5,54.5,-182,51,-181,53,-173.5
4020 DATA 55,-173.5,58.5,-169.5,53,-167,52.5,-169
4030 DATA 49,-171.5,47.5,-185,41.5,-181.5,38.5,-175
4040 DATA 43,-174,40.5,-165.5,44,-157.5,42,-150,47,-143,50,-142,51.5,-134
4050 DATA 999,999
4060 DATA 18,-34.5,20.5,-38,999,999
4070 DATA 35.5,-205.5,33.5,-203.5,999,999
4100 DATA 0,0,2,0,5,-5,6.5,-5.5,9,-18.5,5.5,-20,8,-21,12.5,-17,14.5,-19
4110 DATA 14.5,-25.5,17.5,-28,21.5,-28,18,-34.5,6.5,-34.5,6.5,-45.5,0,-94
4120 DATA 0,0,888,888
4200 DATA 123,131,50,131,25,25,70,131,50,90,70,190,90,5,120,110,999,999
4.5,6.5,-34.5,6.5,-45.5,0,-94
4120 DATA 0,0,888,888
4200 DATA 123,131,50,131,25,25,70,131